package com.genexususa.eo.connection.google.analytics;

import java.io.IOException;
import java.util.HashMap;
import java.util.Properties;

public class Info {

    public static HashMap<String, String> getMySQLProperties() throws IOException {
        HashMap<String, String> prop = null;

        Properties properties = new Properties();
        properties.load(Info.class.getResourceAsStream("/mysql.properties"));
        prop = new HashMap<String, String>();
        prop.put("username", properties.getProperty("username").trim());
        prop.put("password", properties.getProperty("password").trim());
        prop.put("server", properties.getProperty("server").trim());
        prop.put("schema", properties.getProperty("schema").trim());
        prop.put("table", properties.getProperty("table").trim());

        return prop;
    }
}
